﻿Public MustInherit Class KundeProjektTaskController
    Inherits Controller
    Implements KundeProjektTaskListener

    Public Overrides Sub onClose()
        Navigation.getInstance().goBack(Me)
    End Sub

    Public Overrides Sub show()
        MyBase.show()
        Context.KUNDE_PROJEKT_TASK_SERVICE.initData()
    End Sub

    Public Overridable Sub onKundeChanged(ByRef kunde As Kunde) Implements KundeProjektTaskListener.onKundeChanged
        Context.KUNDE_PROJEKT_TASK_SERVICE.setKunde(kunde)
    End Sub

    Public Overridable Sub onProjektChanged(ByRef projekt As Projekt) Implements KundeProjektTaskListener.onProjektChanged
        Context.KUNDE_PROJEKT_TASK_SERVICE.setProjekt(projekt)
    End Sub

    Public Overridable Sub onTaskChanged(ByRef task As Task) Implements KundeProjektTaskListener.onTaskChanged
        Context.KUNDE_PROJEKT_TASK_SERVICE.setTask(task)
    End Sub
End Class
